'''
配置文件
'''
DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = '123456'
HOST = '120.25.151.122'
PORT = '3306'
DATABASE = 'openharmony'

#mysql 不会认识utf-8,而需要直接写成utf8
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True

DEBUG = False
SECRET_KEY = "Rock"
SESSION_TYPE = "redis"
SESSION_COOKIE_SECURE = True
SESSION_USE_SIGNER = True
TESTING = False
PORT = 5000
HOST = "0.0.0.0"